/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  background-color: #d8d8d8;
}
// 滚动条里面的小方块
::-webkit-scrollbar-track {
  border-radius: 10px;
}
// 滚动条的轨道
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #bbb;
}
// 滚动条轨道两端的按钮
::-webkit-scrollbar-button {
}
// 内层轨道，滚动条中间部分
::-webkit-scrollbar-track-piece {
}
// 边角，及两个滚动条的交汇处
::-webkit-scrollbar-corner {
}

/* UI风格 */
.ivu-layout {
  background: #f7fafc;
}

.beautiful-table {
  /* 滚动条样式 */
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: #d8d8d8;
  }
  ::-webkit-scrollbar-track {
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #bbb;
    position: relative;
  }

  // 漂亮表格-复杂
  &.complex-table {
    .ivu-table {
      &:before {
        display: none;
      }
      .ivu-table-header {
        border-top: solid 1px #cfeef9;
        border-left: solid 1px #cfeef9;
        tr {
          height: 55px;
          th {
            color: #0086e6;
            background: #e6f7fd;
            font-weight: normal;
            border-right: solid 1px #cfeef9;
            border-bottom: solid 1px #cfeef9;
          }
        }
      }
    }
  }

  // 漂亮表格-普通
  .ivu-table {
    &:before {
      display: none;
    }
    .ivu-table-title {
      height: 70px;
      border: 0;
    }
    .ivu-table-header {
      tr {
        height: 55px;
        th {
          color: #0086e6;
          background: #e6f7fd;
          font-weight: normal;
          border-bottom: 0;
        }
      }
    }
    .ivu-table-body {
      tr {
        td {
          border-bottom: 0;
          // background: #fff;
          &.ivu-table-expanded-cell {
            background: #fbfbfb;
          }
        }
        &:nth-child(2n) {
          td {
            background: #fbfbfb;
            &.ivu-table-expanded-cell {
              background: #fbfbfb;
            }
          }
        }
        &.ivu-table-row-hover {
          color: #0086e6;
          td {
            background: #fff;
          }
          &:nth-child(2n) {
            td {
              background: #fbfbfb;
            }
          }
        }
      }
    }
    .ivu-btn {
      &.ivu-btn-small {
        min-width: 60px;
        font-size: 12px;
        padding: 0 10px;
        height: 28px;
      }
      &.ivu-btn-text {
        font-size: 14px;
        padding: 0;
        background: none;
        border: 0;
        outline: none;
        color: #0086e6;
        box-shadow: none;
        &[disabled] {
          color: #999;
        }
      }
    }
    .ivu-table-footer {
      height: 70px;
      padding: 10px 0;
      text-align: center;
      .ivu-page {
        .ivu-page-total {
          color: #0dc2ff;
        }
        .ivu-page-item {
          border-color: #e6f7fd;
          border-radius: 100%;
          background: #e6f7fd;
          a {
            color: #228fe7;
          }
          &.ivu-page-item-active {
            border-color: #0dc2ff;
            background: #0dc2ff;
            a {
              color: #fff;
            }
          }
        }
        .ivu-page-prev,
        .ivu-page-next {
          border-radius: 100px;
          border-color: #cff3ff;
          padding: 0 15px;
          a {
            color: #48cbff;
          }
        }
        .ivu-page-options {
          .ivu-page-options-sizer {
            .ivu-select-single {
              display: inline-block;
              margin-top: -5px;
              .ivu-select-selection {
                border-radius: 100px;
                border-color: #cff3ff;
                padding: 0 15px;
                color: #48cbff;
              }
            }
          }
        }
      }
    }
    .ivu-table-fixed,
    .ivu-table-fixed-right {
      // line-height: 1.15;
      .ivu-table-fixed-header {
        tr {
          height: 55px;
          th {
            color: #0086e6;
            background: #e6f7fd;
            border-bottom: 0;
          }
        }
      }
      .ivu-table-fixed-body {
        tr {
          td {
            border-bottom: 0;
          }
          &:nth-child(2n) {
            td {
              background: #fbfbfb;
            }
          }
          &.ivu-table-row-hover {
            color: #0086e6;
            td {
              background: #fff;
            }
            &:nth-child(2n) {
              td {
                background: #fbfbfb;
              }
            }
          }
        }
      }
    }
  }

  &.ivu-table-wrapper-with-border {
    border-color: #cfeef9;
    border: none;
    .ivu-table-header {
      tr {
        height: 55px;
        th {
          // color: #0086e6;
          background: #e6f7fd;
          font-weight: normal;
          border-right: solid 1px #cfeef9;
          border-bottom: solid 1px #cfeef9;
        }
      }
    }
    .ivu-table-body {
      tr {
        height: 55px;
        td {
          // color: #0086e6;
          font-weight: normal;
          border-right: solid 1px #cfeef9;
          border-bottom: solid 1px #cfeef9;
        }
      }
    }
  }

  .areaTree {
    .ivu-cascader {
      &.ivu-cascader-disabled {
        .ivu-cascader-rel {
          .ivu-icon {
            opacity: 0;
          }
          .ivu-input-wrapper {
            input {
              background: none;
              color: #515a6e;
              border: none;
              cursor: default;
              padding: 0;
            }
          }
        }
      }
    }
  }
}

.modal-table-default {
  .ivu-table {
    overflow: visible;
    .ivu-table-cell {
      overflow: visible;
      .ivu-input,
      .ivu-select-selection {
        border-color: #dcdee2;
      }
    }
  }
}

.ivu-btn {
  border-radius: 100px;
  &.ivu-btn-info {
    color: #fff;
    background-color: #0dc2ff;
    border-color: #0dc2ff;
    &:hover {
      background-color: #00a4db;
      border-color: #00a4db;
    }
    &.ivu-btn-ghost {
      color: #0dc2ff;
      background-color: #fff;
      border-color: #0dc2ff;
      &:hover {
        color: #00a4db;
        background-color: #fff;
        border-color: #00a4db;
      }
    }
    &[disabled] {
      color: #c5c8ce;
      background-color: #f7f7f7;
      border-color: #dcdee2;
    }
  }
  &.ivu-btn-warning {
    color: #fff;
    background-color: #ffb31a;
    border-color: #ffb31a;
    &:hover {
      background-color: #ffa61a;
      border-color: #ffa61a;
    }
    &.ivu-btn-ghost {
      color: #ffb31a;
      background-color: #fff;
      border-color: #ffb31a;
      &:hover {
        color: #ffa61a;
        background-color: #fff;
        border-color: #ffa61a;
      }
    }
  }
  &.ivu-btn-default {
    &:hover {
      color: #0dc2ff;
      background-color: #fff;
      border-color: #0dc2ff;
    }
  }
  &.ivu-btn-small {
    padding: 0 15px;
  }
}

.ivu-input {
  height: 36px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0);
  box-shadow: 1px 2px 3px rgba(0, 130, 174, 0.05);
  padding-left: 15px;
  padding-right: 15px;
  &:hover {
    border-color: #0dc2ff;
  }
  &.ivu-input-disabled {
    box-shadow: 1px 2px 3px rgba(0, 130, 174, 0);
  }
}
.input-has-border {
  .ivu-input {
    border-color: #dcdee2 !important;
    box-shadow: none !important;
  }
  .ivu-select-selection {
    border-color: #dcdee2 !important;
    box-shadow: none !important;
  }
}

.ivu-select {
  &.ivu-select-disabled {
    .ivu-select-selection {
      height: 36px;
      box-shadow: 1px 2px 3px rgba(0, 130, 174, 0);
    }
  }
  .ivu-select-selection {
    height: 36px;
    border-radius: 8px;
    border-color: #fff;
    box-shadow: 1px 2px 3px rgba(0, 130, 174, 0.05);
    padding-left: 15px;
    padding-right: 15px;
    .ivu-select-placeholder {
      height: 34px;
      line-height: 34px;
    }
    .ivu-select-selected-value {
      line-height: 34px;
    }
  }
}
.ivu-form-item-error .ivu-select-selection {
  border-color: #ed4014;
}
.mb-5 {
  .ivu-form-item-error-tip {
    display: none;
  }
}

.ivu-date-picker {
  overflow: inherit;
  .ivu-date-picker-rel {
    .ivu-input-wrapper {
      .ivu-input {
        height: 36px;
        box-shadow: 1px 2px 3px rgba(0, 130, 174, 0.05);
        &.ivu-input-disabled {
          box-shadow: none;
        }
      }
    }
  }
}
.ivu-cascader {
  .ivu-cascader-rel {
    overflow: inherit;
    .ivu-input-wrapper {
      .ivu-input {
        height: 36px;
        box-shadow: 1px 2px 3px rgba(0, 130, 174, 0.05);
        &.ivu-input-disabled {
          box-shadow: none;
        }
      }
    }
    .ivu-cascader-label {
      line-height: 36px;
    }
  }
}

// .ivu-checkbox-wrapper{
//   .ivu-checkbox{
//     .ivu-checkbox-inner{
//       border-radius: 100%;
//     }
//   }
//   &.ivu-checkbox-wrapper-checked{
//     .ivu-checkbox-checked{
//       .ivu-checkbox-inner{
//         border-color: #0dc2ff;
//         background-color: #0dc2ff;
//       }
//     }
//   }
// }

.beautiful-radio-group {
  &.ivu-radio-group-button {
    padding-top: 0 !important;
    white-space: nowrap;
    .ivu-radio-wrapper {
      border-color: rgba(255, 255, 255, 0);
      position: relative;
      &:hover {
        color: #0dc2ff;
      }
      &:first-child {
        border-radius: 100px 0 0 100px;
        border-left: none;
        &:before {
          display: none;
        }
      }
      &:last-child {
        border-radius: 0 100px 100px 0;
      }
      &:before {
        height: 50%;
        top: 25%;
        display: block;
        background: #dcdee2;
        z-index: 1;
      }
      &:after {
        display: none;
      }
      &.ivu-radio-wrapper-checked {
        border-color: rgba(255, 255, 255, 0);
        color: #0dc2ff;
        box-shadow: none;
        &:before {
          opacity: 1;
        }
      }
    }
  }
}

.beautiful-search {
  width: 100%;
  height: 104px;
  position: relative;
  text-align: center;
  // margin-bottom: 45px;
  padding: 15px 0 45px 0;
  &:before,
  &:after {
    content: "";
    width: 38%;
    height: 1px;
    background: #0dc2ff;
    position: absolute;
    top: 37px;
  }
  &:before {
    left: 0;
  }
  &:after {
    right: 0;
  }
  button {
    width: 295px;
    height: 44px;
    font-size: 16px;
    letter-spacing: 2px;
    box-shadow: 0px 2px 7px 2px rgba(13, 194, 255, 0.4);
  }
}

.table-title-btns {
  padding-top: 10px;
}
.table-title-lefttxt {
  font-size: 14px;
  line-height: 68px;
}

.ivu-btn-primary {
  color: #fff;
  background-color: #0dc2ff;
  border-color: #0dc2ff;
  &:hover {
    background-color: #00a4db;
    border-color: #00a4db;
  }
}

.ivu-modal-wrap {
  border-radius: 6px;
  .ivu-modal {
    .ivu-modal-content {
      .ivu-modal-close {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 100%;
        .ivu-icon {
          color: #fff;
        }
      }
      .ivu-modal-header {
        border-radius: 6px 6px 0 0;
        background: #0dc2ff;
        color: #fff;
        text-align: center;
        .ivu-modal-header-inner {
          color: #fff;
        }
      }
      .ivu-modal-body {
        // background-color: #f7fafc;
      }
      .ivu-modal-footer {
        .ivu-btn {
          &.ivu-btn-text {
            &:hover {
              color: #00a4db;
            }
          }
          &.ivu-btn-primary {
            color: #fff;
            background-color: #0dc2ff;
            border-color: #0dc2ff;
            &:hover {
              background-color: #00a4db;
              border-color: #00a4db;
            }
          }
        }
      }
    }
  }
}
.has-bg {
  .ivu-modal-body {
    background-color: #f7fafc;
  }
}

.ivu-steps {
  &.employee-create-steps {
    .ivu-steps-item {
      &.ivu-steps-status-process {
        .ivu-steps-tail {
          border-color: #6edaff !important;
          // background-image: url('')
        }
        .ivu-steps-head {
          .ivu-steps-head-inner {
            background: #6edaff;
            border-color: #6edaff;
            .ivu-steps-icon {
              color: #fff;
            }
          }
        }
        .ivu-steps-main {
          .ivu-steps-title {
            color: #6edaff !important;
          }
        }
      }
      &.ivu-steps-status-finish {
        .ivu-steps-tail {
          border-bottom: 2px solid #6edaff !important;
          background: none;
        }
        .ivu-steps-head {
          .ivu-steps-head-inner {
            background: #6edaff;
            border-color: #6edaff;
            .ivu-steps-icon {
              color: #fff;
            }
          }
        }
        .ivu-steps-main {
          .ivu-steps-title {
            color: #000 !important;
          }
        }
      }
      .ivu-steps-tail {
        height: 4px;
        border-bottom: 4px dotted #e5e5e5;
        // background-image: url('');
        // background-repeat: repeat-x;
        // background-position: bottom;
        top: 33px;
        i {
          display: none;
        }
      }
      .ivu-steps-head {
        width: 110px;
        margin-left: 0;
        padding-left: 19px;
        .ivu-steps-head-inner {
          width: 72px;
          height: 72px;
          border-radius: 100%;
          border: solid 1px #eaeaea;
          color: #d9d9d9;
          &:before {
            font-size: 36px;
            line-height: 70px;
          }
          .ivu-steps-icon {
            width: 72px;
            height: 72px;
            line-height: 70px;
            font-size: 36px;
            text-align: center;
          }
        }
      }
      .ivu-steps-main {
        display: block;
        .ivu-steps-title {
          width: 110px;
          text-align: center;
          font-weight: normal;
          padding-right: 0;
          font-size: 16px;
        }
      }
    }
  }
}

.default-transfer {
  .ivu-transfer-list-body {
    &.ivu-transfer-list-body-with-search {
      padding-top: 55px;
      .ivu-transfer-list-body-search-wrapper {
        padding-top: 14px;
      }
    }
  }
  .ivu-transfer-list-search {
    margin-bottom: 10px;
    z-index: 1111;
    .ivu-input-wrapper {
      .ivu-icon {
        top: 3px;
      }
      .ivu-input {
        height: 30px;
        border-color: rgba(0, 0, 0, 0.05);
        box-shadow: none;
      }
    }
  }
}

.beautiful-table-double {
  .ivu-table {
    .ivu-table-title {
      height: 110px;
      border: 0;
    }
  }
  &.hasTitle-table {
    .ivu-table-fixed,
    .ivu-table-fixed-right {
      top: 110px;
    }
  }
}
